package com.young.ysepay.mq;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * describe:
 *
 * @author zhaopengjun
 * @date 2019/5/17 16:22
 */
@Component
public class YsReturnMQConfig {

    public static  String PAYTOPIC ;
    public static  String SETTLETOPIC ;
    public static String STORE_TOPIC;
    public static String YS_TOPIC;
    public static String YS_GROUPID;
    public static final String ACCESS_KEY = "LTAIkLoCSLqX7QFG";
    public static final String SECRET_KEY = "anr8xwxEFrN4Rq0Gjw5MXxELuDb12V";
    public static final String NAMESRV_ADDR = "http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80";

    //注入对应中心的topic
    @Value("${RocketMQ_Key.Pay.Topic}")
    private void setTOPIC(String TOPIC) {
        YsReturnMQConfig.PAYTOPIC = TOPIC;
    }
    //注入对应中心的groupId
    @Value("${RocketMQ_Key.Settle.Topic}")
    private void setGroupId(String settleTopic) {
        YsReturnMQConfig.SETTLETOPIC = settleTopic;
    }

    //注入对应中心的topic 商户中心
    @Value("${RocketMQ_Key.Store.Topic}")
    private void setStoreTopic(String topic) {
        YsReturnMQConfig.STORE_TOPIC = topic;
    }

    @Value("${RocketMQ_Key.Ys.Topic}")
    private void setYsTopic(String ysTopic) {
        YsReturnMQConfig.YS_TOPIC = ysTopic;
    }

    @Value("${RocketMQ_Key.Ys.GroupId}")
    private void setYsGroupId(String groupId) {
        YsReturnMQConfig.YS_GROUPID = groupId;
    }





    //---------------Tag——————————————
    //public static final String SETTLE_SPLIT_TAG = "SETTLE_SPLIT";

    //public static final String YSASYNCHRONOUS_TAG="YSSPLITRETURN";
    //银盛提现异步回执
    public static final String YSWITHDRAWALRECEIPT_TAG = "WITHDRAWALRECEIPT";
    //通知银盛发起分账--回执
    public static final String YSSPLITRECEIPT_TAG = "YSSPLITRECEIPT";
    //通知银盛分账
    //public static final String YSSPLIT_TAG = "YSSPLIT";
    //银盛代打款异步回执
    public static final String YSPAYMENT_TAG = "YSPAYMENT";
    //银盛微信支付异步
    public static final String PAY_TAG = "YSPAYBACK";
    //银盛支付宝支付异步
    public static final String YS_ALI_PAY_TAG = "YSALIPAYBACK";
    //报备异步通知商户中心修改报备状态
    public static final String YSREPORT = "YSREPORT";
    //报备银盛同步请求
    public static final String YSREQUERTREPORT = "YSREQUERTREPORT";
    //报备请求同步结果
    public static final String YSREQUERTREPORTRESULT = "YSREQUERTREPORTRESULT";
    //报备请求同步结果查询
    public static final String YSREQUERTREPORTRESULTQUERY = "YSREQUERTREPORTRESULTQUERY";
    //报备异常处理
    public static final String YSREQUERTERRORRESULT = "YSREQUERTERRORRESULT";

    public static final String  TAG_ALL = "*";

}
